Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

feat(core): Use ngStrictDi in production #1302

Closed
wants to merge 1 commit into from
Closed

feat(core): Use ngStrictDi in production #1302

wants to merge 1 commit into from

Conversation

pgrodrigues
Copy link
Contributor

Slightly changed layout template to use Angular's Strict
Dependency Injection if the app is running in production.

Fixes part of #1294

Slightly changed layout template to use Angular's Strict
Dependency Injection if the app is running in production.

Fixes part of #1294
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 70.647% when pulling e1f45e1 on pgrodrigues:master into eaead7a on meanjs:master.

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" {% if env === "production" %}ng-strict-di{% endif %}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a downside to not having this turned on all the time. Is there?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilanbiala Wouldn't work if you use ngAnnotate? (I saw a PR at some point for that but not sure if it's already included)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilanbiala right now ngAnnotate is only being used in build task for production so I kept ngStrictDi only for production otherwise it will break.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could just annotate in development too, which I'm not opposed to. Honestly I think ngStrictDi would prevent errors in production if we also check it in development.

@lirantal
Copy link
Member

lirantal commented Jul 7, 2016

@meanjs/contributors any of you care to take it further to implement @ilanbiala suggested changes with making it work regardless of the environment? it's a rather small change.

@lirantal
Copy link
Member

lirantal commented Jul 7, 2016

@pgrodrigues you're also welcome to just update the PR to accommodate the changes.
And of course congrats on passing a stage in the euro 2016 stages! :-)

portugal

@pgrodrigues
Copy link
Contributor Author

@codydaig is already taking care of this. Time to celebrate the Euro2016 win :)

@lirantal
Copy link
Member

lirantal commented Jul 11, 2016

@pgrodrigues definitely! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants